//
//  LSZNotifyBasicInformationTableViewCell.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/9/10.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZNotifyBasicInformationTableViewCell.h"

@implementation LSZNotifyBasicInformationTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        CGFloat height = [LSZSpecialPackaging initWithReturnsthesizeOf:35 :5];
        CGFloat heightLab = [LSZSpecialPackaging initWithReturnsthesizeOf:18 :2];

        self.imageAvatar = [[UIImageView alloc]init];
        self.imageAvatar.frame = CGRectMake(10, 10, height, height);
        [self.imageAvatar.layer setMasksToBounds:YES];
        [self.imageAvatar.layer setCornerRadius:self.imageAvatar.frame.size.height/2];
        [self addSubview:self.imageAvatar];

        self.labelName = [[UILabel alloc]init];
        self.labelName.frame = CGRectMake(CGRectGetMaxX(self.imageAvatar.frame)+10, CGRectGetMinY(self.imageAvatar.frame),ScreenWidth-CGRectGetMaxX(self.imageAvatar.frame)-20, heightLab);
        [LSZSpecialPackaging setLabelAdaptiveSize:self.labelName font:14];
        self.labelName.textColor = titleColorLSZ;
        [self addSubview:self.labelName];

        self.labelTime = [[UILabel alloc]init];
        self.labelTime.frame = CGRectMake(CGRectGetMaxX(self.imageAvatar.frame)+10, CGRectGetMaxY(self.imageAvatar.frame)-(heightLab-4), self.labelName.frame.size.width, heightLab-4);
        [LSZSpecialPackaging setLabelAdaptiveSize:self.labelTime font:12];
        self.labelTime.textColor = lightColor;
        [self addSubview:self.labelTime];

        self.viewRed = [[UIView alloc]init];
        self.viewRed.frame = CGRectMake(ScreenWidth-20,20, 10, 10);
        self.viewRed.backgroundColor = redUIColor;
        [self.viewRed.layer setMasksToBounds:YES];
        [self.viewRed.layer setCornerRadius:self.viewRed.frame.size.width/2];
        [self addSubview:self.viewRed];

        self.labelInteractiveClasses = [[UILabel alloc]init];
        self.labelInteractiveClasses.frame = CGRectMake(10, CGRectGetMaxY(self.imageAvatar.frame)+7, ScreenWidth-20, heightLab-2);
        self.labelInteractiveClasses.textColor = titleColorLSZ;
        [LSZSpecialPackaging setLabel_14_5_Size:self.labelInteractiveClasses];
        [self addSubview:self.labelInteractiveClasses];

    }
    return self;
}

@end
